package com.cloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @描述:
 * @类名:
 * @作者: yangshuang
 * @创建时间: 2017/6/27 17:13
 * @版本: v1.0
 */
@RefreshScope
@RestController
public class TestController {
    @Value("${from}")
    private String from;

    @RequestMapping(value = "/from")
    public String from() {
        return this.from;
    }
}
